package com.atzongmaotan.datastructures;

/**
 * ClassName:    OnlyWayLinkedList
 * Package:  com.atzongmaotan.datastructures
 * Description:
 *
 * @Author: interface
 * @Create: 2024/9/29 - 下午10:02
 * @Version: v1.0
 */
public class OnlyWayLinkedList {

}
class OnlyWayNodeList{
    
}
class Node {
    private int no;
    private Node next;
    private String name;
    private String nickName;
    //构造器
    public Node(int no, String name, String nickname) {
        this.no = no;
        this.name = name;
        this.nickName = nickname;
    }
    //为了显示方法，我们重新toString
    @Override
    public String toString() {
        return "HeroNode [no=" + no + ", name=" + name + ", nickName=" + nickName + "]";
    }
}
